home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2003 May / cmycha200305.iso / MutantStorm / setup_mutantstorm_demo.exe / {app} / script / crystal_large.lua < prev    next >
Text File  |  2002-09-17  |  2KB  |  60 lines

  1.  
  2. -- leave me
  3.     local actor = ACTOR_preload()
  4. -- leave me
  5.  
  6.  
  7.     -- default for this beastie
  8.     actor[cp_actor_name]        = "crystal_large"
  9.     actor[cp_model_dir]            = "beasties"
  10.     actor[cp_model_name]        = "crystal-1_1"
  11.  
  12.     actor[cp_move_type]            = cmt_fixed_dirn + cmt_random
  13.  
  14.     actor[cp_actor_type]            = cat_crystal
  15.     actor[cp_i_collide_with_beasties]    = cat_fence + cat_fizz + cat_player + cat_block + cat_blocker + cat_webblob + cat_mergeblob
  16. --    actor[cp_these_collide_with_me]        = cat_player + cat_bullet + cat_crystal
  17.  
  18.     actor[cp_score]                = 100
  19.     actor[cp_hit_power]            = 5.0
  20.  
  21.     -- movement
  22.     actor[cp_move_speed_min]        = 0.1
  23.     actor[cp_move_speed_max]        = 0.15
  24.     actor[cp_move_inertia_decn]        = 1.0
  25.  
  26.     actor[cp_spin_speed_min]        = 0.125
  27.     actor[cp_spin_speed_max]        = 0.625
  28.     -- spin1_x
  29.     actor[cp_turn_speed_moving]        = 0.1
  30.  
  31.     actor[cp_weight]                = 24.0
  32.  
  33.     actor[cp_launch_scale_min]        = 100.0
  34.     actor[cp_launch_scale_max]        = 100.0
  35.  
  36.     actor[cp_launch_hue_shift] = color - 30
  37.  
  38.     actor[cp_hit_delay]            = 2.55
  39.     actor[cp_fade_in_translucent]    = 1
  40.  
  41.     actor[cp_max_explosion_multiply]    = 1.0
  42.  
  43. -- leave me
  44.     c_preload_model( actor )
  45. -- leave me
  46.  
  47.     c_set_random_anim( "throb", 50.0, 200.0, 0.0, 1.0 )
  48.     c_add_sound_to_anim( "throb", "moon", 1 )
  49.  
  50.     local seq = { 0.0 }
  51.     c_set_use_explosion_for( "bye_bye", "crystal1_lar", exp_no_align, 100.0, 0.7, 2200.0, 2400.0, seq )
  52.     c_add_particle_to_explosion( "crystal1_lar", "explode", "", "crystal1exp-lar" )
  53.     c_add_sound_to_explosion( "crystal1_lar", "explode", "crystal_exp1" )
  54.     c_add_sound_to_event( "hit_fence", "crystal_exp1" )
  55.     c_add_particle_to_anim( "emerge", "crystalmesh", "crystal-emergepad" )
  56.  
  57.     -- new state
  58.     c_set_trigger_mutate( "crystal_medium", "my_health", 0.0, 0.0, 2, 3, 95.0, 105.0 )
  59.     -- new state
  60.